package com.laiketui.plugin.common.domain.vo.order;

import com.laiketui.core.annotation.ParamsMapping;
import com.laiketui.plugin.common.domain.MainVo;

/**
 * 订单参数
 *
 * @author Trick
 * @date 2022/7/27 14:32
 */
public class OrderVo extends MainVo {

    /**
     * 插件主键id 一般指插件商品id
     */
    private Integer mainId;

    /**
     * 规格id
     */
    private Integer attrId;

    /**
     * 收货地址id
     */
    @ParamsMapping("address_id")
    private Integer addressId;

    /**
     * 订单备注
     */
    private String remarks;

    /**
     * 订单号【编辑订单】
     */
    private String orderNo;

    /**
     * 购买人id
     */
    private Integer uid;

    /**
     * 售后类型
     */
    private Integer rtype;

    public Integer getRtype() {
        return rtype;
    }

    public void setRtype(Integer rtype) {
        this.rtype = rtype;
    }

    /**
     * 商品详情信息
     * 【拼团参数结构->{"pid":"2255","cid":18398,"num":"2","openId":"sss-22-1-3"}】
     */
    private String productsInfo;
    /**
     * 用户id用于远程调用使用
     */
    private String userId;

    /**
     *是否是插件主动下单
     */
    private boolean isPlugin;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getProductsInfo() {
        return productsInfo;
    }

    public void setProductsInfo(String productsInfo) {
        this.productsInfo = productsInfo;
    }

    public Integer getAttrId() {
        return attrId;
    }

    public void setAttrId(Integer attrId) {
        this.attrId = attrId;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public Integer getMainId() {
        return mainId;
    }

    public void setMainId(Integer mainId) {
        this.mainId = mainId;
    }

    public boolean getIsPlugin() {
        return isPlugin;
    }

    public void setIsPlugin(boolean isPlugin) {
        this.isPlugin = isPlugin;
    }
}
